Release 10.1A: OpenEdge Data Management:
DataServer for ORACLE
Retrieving return codes
You can create a stored procedure that provides return code information. For example, it might indicate whether the stored procedure was successful or whether it encountered an error condition.
Example 3–4 shows how the 4GL code runs the stored procedure
pcust. It uses thePROC-STATUSfunction and theCLOSESTORED-PROCto retrieve the return code and assign the value to the variable stat.
Example 3–4: Progress 4GL code running the stored procedure pcustThe ORACLE return codes have a range of values between –20000 and –20999. These values are user defined and you can test for them with the
PROC-STATUSfunction.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |